python asyncio
hello python asyncio
Asyncio achieves concurrency through the use of coroutines. Coroutines are functions that can be paused and resumed at specific points during their execution. This allows multiple coroutines to run concurrently within a single thread.
When programming, asynchronous means that the action is requested, although not performed at the time of the request. It is performed later.
-
Future: A handle on an asynchronous function call allowing the status of the call to be checked and results to be retrieved.
-
Asynchronous Task: Used to refer to the aggregate of an asynchronous function call and resulting future
-
coroutine is a function that can be suspended and resumed.